package com.gitee.kamismile.stone.basic.data.domain.sysRes.service;

import com.gitee.kamismile.stone.basic.data.domain.sysRes.repository.entity.SysResources;
import org.springframework.data.domain.Page;
import org.springframework.data.relational.core.query.Criteria;
import reactor.core.publisher.Flux;
import reactor.core.publisher.Mono;

import java.util.List;

public interface ISysResDomainService {


    public Mono<SysResources> saveOrUpdate(SysResources sysResources);

    Mono<Void> deleteSysResById(Integer nResourcesId);

    public Mono<Page<SysResources>> findResPage(int page, int size,
                                          Criteria criteria);


    public Mono<SysResources> findAndCheckResById(Integer nResourcesId, Integer nTenantId);

    public Flux<SysResources> findResByIds(List<Integer> nResourcesIds, String sType, String sParentType,
                                           Integer nParentId);

    public Flux<SysResources> findResByIds(List<Integer> nResourcesIds);
}
